//
// Created by zing on 3/30/2020.
//

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

int main() {
    char path[128];
    char *string = getcwd(path, sizeof(path));
    if (string == NULL) {
        perror("getcwd");
        return EXIT_FAILURE;
    }
    printf("%s\n", string);
    printf("%s\n", path);
    return EXIT_SUCCESS;
}